<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>
NullToVisibilityConverter class
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../resources/stylesheet.css" TITLE="Style">
</HEAD>

<BODY BGCOLOR="white">


<!-- ========= START OF TOP NAVBAR ======= -->

<table border="0" width="100%">
<tr>
<td width="50%">
<p align="left">
<a href="http://mvvmbasics.mobilemotion.eu/" target="_blank" title="MVVMbasics Homepage"><img src="../../resources/logo_mvvmbasics.png" alt="MVVMbasics Logo" border="0"></a>
</p>
</td>
<td width="50%">
<p align="right">
<a href="http://www.mobilemotion.eu/" target="_blank" title="mobilemotion.eu Homepage"><img src="../../resources/logo_mobilemotion.png" alt="mobilemotion.eu Logo" border="0"></a>
</p>
</td>
</tr>
</table>

<HR>

<p><a href="../../index.htm" title="MVVMbasics Class Reference Homepage">Back to Class Reference home page</a></p>

<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">MVVMbasics.Converters</FONT>
<BR>
Class NullToVisibilityConverter
</H2>

<CODE>
<a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.data.ivalueconverter.aspx" target="_blank" title="IValueConverter">Windows.UI.Xaml.Data.IValueConverter</a> | <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.ivalueconverter(v=vs.110).aspx" target="_blank" title="IValueConverter">System.Windows.Data.IValueConverter</a>
<br>
&nbsp;&nbsp;<IMG SRC="../../resources/inherit.gif" ALT="implemented by "><B>MVVMbasics.Converters.NullToVisibilityConverter</B>
<br>&nbsp;
</CODE>
<HR>
<CODE>
&nbsp;<br>
public class <B>NullToVisibilityConverter</B> : <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.data.ivalueconverter.aspx" target="_blank" title="IValueConverter">Windows.UI.Xaml.Data.IValueConverter</a> | <a href="http://msdn.microsoft.com/en-us/library/system.windows.data.ivalueconverter(v=vs.110).aspx" target="_blank" title="IValueConverter">System.Windows.Data.IValueConverter</a>
</CODE>

<P>
Converter class that converts values to the Visibility.Collapsed value if they are NULL, and to Visibility.Visible otherwise.
</P>

<hr>

<!-- ======== METHOD SUMMARY ======== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>object&nbsp;</CODE></FONT></TD>
<TD>
<CODE><B><a href="#Convert()">Convert</a></B>(object value, <a href="http://msdn.microsoft.com/en-us/library/system.type(v=vs.110).aspx" target="_blank" title="System.Type">Type</a> targetType, object parameter, ...)</CODE>
<BR>
<span class="Indented">Converts values to the Visibility.Collapsed value if they are NULL, and to Visibility.Visible otherwise.</span>
</TD>
</TR>

</TABLE>
&nbsp;

<!-- ========= METHOD DETAIL ======== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="Convert()"><!-- --></A><H3>
Convert</H3>
<CODE>public object <B>Convert</B>(object value, <a href="http://msdn.microsoft.com/en-us/library/system.type(v=vs.110).aspx" target="_blank" title="System.Type">Type</a> targetType, object parameter, ...)</CODE>
<p class="Indented">Converts values to the Visibility.Collapsed value if they are NULL, and to Visibility.Visible otherwise.</p>

<div class="Indented">
<B>Parameters:</B>
<p class="Indented">
<CODE>value</CODE> - Input value<br>
<CODE>targetType</CODE> - (not used)<br>
<CODE>parameter</CODE> - (not used)<br>
</p>
<B>Returns:</B>
<p class="Indented">
Visibility.Collapsed if the input value is NULL, Visibility.Visible otherwise<br>
</p>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<HR>

</body>
</HTML>